<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8"/>
		<title>值类型与引用类型</title>
	</head>
	<body>
		<script type="text/javascript">
		//值类型
		/* var a =10;
		var b = a;

		a = 20;
		console.log(a);
		console.log(b);
		 */
		
		//引用类型
/* 		var a = {
			name:"老王"
		};

		var b = a;

		a.name = "小明";

		console.log(a);
		console.log(b); */
		
		



		</script>
	</body>
</html>